import React from 'react';
import ReactDOM from 'react-dom';
import registerServiceWorker from './registerServiceWorker';
import CountDown from './CountDown';

ReactDOM.render(
    <CountDown startCount={10}>
        {
            (count) => <div>{count > 0 ? count : '倒计时结束'}</div>
        }
    </CountDown>,
    document.getElementById('root')
);
registerServiceWorker();
